package com.j1ay.forum.controller;

import com.j1ay.forum.utils.UserThreadLocal;
import com.j1ay.forum.model.pojo.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author J1ay
 * @Date 2021/12/17 13:38
 * @Description
 */
@RestController
@RequestMapping("api/test")
@Api(tags={"test测试类接口"})
public class TestController {

    //@ApiOperation("测试")
    @GetMapping
    public Result test() {
        System.out.println(UserThreadLocal.get());
        return Result.success(null);
    }
}
